package com.szit.deviceserver;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 启动类
 * @author wyler
 * @date 2020/09/22
 *
 * EnableTransactionManagement 开启事务
 */

@EnableDiscoveryClient
@SpringBootApplication
@MapperScan("com.szit.deviceserver.dao")
@EnableTransactionManagement
public class DeviceServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(DeviceServerApplication.class, args);
    }

}
